package com.geeaks.mybatis.generator.view;

import javafx.scene.control.Alert;

/**
 * @Description: 提示弹窗工具类
 * @author gaoxiang
 * @date 2018年4月15日 下午10:15:24
 */
public class AlertUtil {

	public static void showInfoAlert(String message) {
		Alert alert = new Alert(Alert.AlertType.INFORMATION);
		alert.setContentText(message);
		alert.show();
	}

	public static void showWarnAlert(String message) {
		Alert alert = new Alert(Alert.AlertType.WARNING);
		alert.setContentText(message);
		alert.show();
	}

	public static void showErrorAlert(String message) {
		Alert alert = new Alert(Alert.AlertType.ERROR);
		alert.setContentText(message);
		alert.show();
	}

	public static Alert buildConfirmationAlert(String message) {
		Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
		alert.setContentText(message);
		return alert;
	}
}
